import request from '@/utils/request'

//查询字典类型列表
export function listType(query) {
    return request({
      url: '/report/yfdw/dict/type/list',
      method: 'put',
      params: query
    })
}

//新增字典类型
export function addType(data) {
    return request({
      url: '/report/yfdw/dict/type/add',
      method: 'put',
      data: data
    })
}

//根据字典分组代码和字典代码更新字典信息
export function getType(dictGroupCode,dictCode) {
    return request({
      url: 'report/yfdw/dict/type/getDictTypeByDictGroupCodeAntDictCode/' + dictGroupCode + '/' + dictCode ,
      method: 'get',
    })
}

//根据字典分组代码和字典代码更新字典信息
export function updateType(data) {
    return request({
      url: 'report/yfdw/dict/type/update',
      method: 'put',
      data: data
    })
}

//批量删除字典类型
export function delType(dictGroupCode,dictCode){
    return request({
      url: 'report/yfdw/dict/type/delete'+ '/' + dictGroupCode + '/' + dictCode,
      method: 'delete'
    })
}
